<div ng-controller="z-reportTimeDetail-c" z-loading is-loading="viewModel.isLoading" >
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
                <div class="outlet">
	                <div class="panel-body">
	                    <form class="form-horizontal group-border hover-stripped" role="form" name="form">
	                        <div class="row">
	                            <!-- 检索条件 -->
								<div class="col-xs-12 col-sm-10 col-md-11 form-box">
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">公司：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group"  style="width:272%;">
												<select id="rtdCorporation" multiple="multiple" class="form-control" ng-model="viewModel.corporationList" tabIndex="1">
				                                </select>	   
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">部门：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<!-- <input name="department" 
													   ng-model="viewModel.departmentName" 
													   type="text" 
													   placeholder="部门编码、部门名称" 
													   maxLength="60"
													   class="form-control"
													   tabIndex="2"> -->
												<select id="rtdDepartmentName" multiple="multiple" class="form-control" ng-model="viewModel.departmentList" tabIndex="2">
				                                </select>	 
											</div>
										</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">员工：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
												<!-- <input name="employeeNo" 
													   ng-model="viewModel.employeeNo" 
													   type="text" 
													   placeholder="员工号、中文名称、英文名称"
													   maxLength="45"
													   class="form-control"
													   tabIndex="3" > -->
												<textarea ng-model="viewModel.employeeNo" placeholder="员工号、中文名称、英文名称" class="form-control elastic __web-inspector-hide-shortcut__" rows="1"></textarea>
											</div>
										</div>
										<!-- <div class="col-sm-2 col-md-2 form-input">
											<div class="input-group">
												<button type="button" class="btn btn-success" tabIndex="7">批量</button>	 
											</div>	  
										</div> -->
									</div>
							</div>
							<div class="col-xs-12 col-sm-10 col-md-11 form-box">
		                           <div class="col-sm-6 col-md-4 col-lg-3 form-item">
										<div class="col-sm-5 col-md-5 form-title">员工级别：</div>
										<div class="col-sm-7 col-md-7 form-input">
											<div class="input-group">
				                                <select id="rtdlevel" multiple="multiple" class="form-control" ng-model="viewModel.employeeLevelList" tabIndex="4">
				                                    <option value="13">13</option>
				                                    <option value="14">14</option>
				                                    <option value="15">15</option>
				                                    <option value="16">16</option>
				                                    <option value="17">17</option>
				                                    <option value="18">18</option>
				                                    <option value="19">19</option>
				                                    <option value="20">20</option>
				                                    <option value="21">21</option>
				                                    <option value="22">22</option>
				                                    <option value="23">23</option>
				                                    <option value="24">24</option>
				                                    <option value="25">25</option>
				                                    <option value="26">26</option>
				                                    <option value="27">27</option>
				                                    <option value="28">28</option>
				                                    <option value="29">29</option>
				                                    <option value="30">30</option>
				                                </select>
											</div>
										</div>
									</div>
		                           
		                           <div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">开始日期：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.reportStratDate.$invalid && !form.reportStratDate.$pristine }">
													<input name="reportStratDate" 
														   ng-model="viewModel.reportStratDate" 
														   class="form-control datetime-picker" 
														   type="text"
														   autofocus="autofocus" 
														   maxLength="10"
														   ng-click="viewModel.startDateOpen($event)"
														   z-datepicker-popup="{{viewModel.format}}"
														   is-open="viewModel.startDateOpened"
														   datepicker-options="viewModel.dateOptions"
													       close-text="Close"
													       required
													       readonly
													       tabIndex="8">
													<span class="input-group-addon cursorPointer" ng-click="viewModel.startDateOpen($event)"><i class="fa-calendar"></i></span>
												</div>
											</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
											<div class="col-sm-5 col-md-5 form-title">结束日期：</div>
											<div class="col-sm-7 col-md-7 form-input">
												<div class="input-group" ng-class="{ 'has-error' : form.reportEndDate.$invalid && !form.reportEndDate.$pristine }">
													<input name="reportEndDate" 
														   ng-model="viewModel.reportEndDate" 
														   class="form-control datetime-picker" 
														   type="text" 
														   autofocus="autofocus" 
														   maxLength="10"
														   ng-click="viewModel.endDateOpen($event)"
														   z-datepicker-popup="{{viewModel.format}}"
														   is-open="viewModel.endDateOpened" 
														   datepicker-options="viewModel.dateOptions"
													       close-text="Close"
													       required
													       readonly
													       tabIndex="9">
													<span class="input-group-addon cursorPointer" ng-click="viewModel.endDateOpen($event)"><i class="fa-calendar"></i></span>
												</div>
											</div>
									</div>
									<div class="col-sm-6 col-md-4 col-lg-3 form-item">
								        <div class="col-sm-7 col-md-7 form-input-left">
											<button type="button" class="btn btn-success" ng-click="viewModel.bindData()" tabIndex="10">搜索</button>
											<button type="button" class="btn btn-success" ng-click="viewModel.exportData()" tabIndex="1">导出</button>
                                        </div> 
									</div>
		                        </div>
		                        <div class="col-xs-12 col-sm-10 col-md-11 form-box">
		                           <div class="col-sm-6 col-md-4 col-lg-3 form-item">
									      <div class="col-sm-7 col-md-7 form-input" style="padding-left: 6px;">
												<button id="dLabel" class="btn btn-lime" ng-click="viewModel.reportButton($event)" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height:32px;">筛选<span class="caret"></span>
                                               	</button>
                                                <ul class="reportUl" ng-show="viewModel.ulShow">
                                                     <li ng-repeat="report in viewModel.checkList"><input type="checkbox" ng-checked="1" ng-click="viewModel.checkbox(report.dicId)">{{report.dicName}}</li>
                                                </ul>
                                          </div> 
									</div>
		                        </div>
	                    </form>
	                </div>
                </div>
                <div class="outlet">
                        <div style="overflow-x: auto;">
                            <!-- col-lg-12 start here -->
                            <table  class="table table-striped table-bordered" cellspacing="0" id="report-table"  style="width:100%;" >
                                <thead class="report-scroll">
                                    <tr>
                                        <th class = "thead1" colspan="13">基本信息</th>
                                        <th class = "thead2" colspan="1">工作日历明细</th>
                                        <th class = "thead3" colspan="4">考勤异常明细</th>
                                        <th class = "thead4" colspan="3">加班明细(天)</th>
                                        <th class = "thead5" colspan="10">请假明细(天)</th>
                                        <th class = "thead6" colspan="24">当年考勤统计</th>
                                        <th class = "thead7" colspan="1"></th>
                                    </tr>
                                    <tr class="report-tr">
                                    	<th ng-show="viewModel.checkbox1"><div>一级架构</div></th>
                                    	<th ng-show="viewModel.checkbox2"><div>二级架构</div></th>
                                    	<th ng-show="viewModel.checkbox3"><div>三级架构</div></th>
                                    	<th ng-show="viewModel.checkbox4"><div>四级架构</div></th>
                                    	<th><div>项目组</div></th>
                                        <th ng-show="viewModel.checkbox5"><div>工号</div></th>
                                        <th ng-show="viewModel.checkbox6"><div>中文名</div></th>
                                        <th ng-show="viewModel.checkbox7"><div>英文名</div></th>
                                        <th><div>性别</div></th>
                                        <th><div>员工级别</div></th>
                                        <th ng-show="viewModel.checkbox8"><div>岗位</div></th>
                                        <th ng-show="viewModel.checkbox9"><div>入职日期</div></th>
                                        <th ng-show="viewModel.checkbox10"><div>离职日期</div></th>
                                        <th ng-show="viewModel.checkbox11"><div style="width:90px;">应出勤天数</div></th>
                                        <th ng-show="viewModel.checkbox13"><div>迟到次数</div></th>
                                        <th ng-show="viewModel.checkbox15"><div>早退次数</div></th>
                                        <th ng-show="viewModel.checkbox17"><div>旷工次数</div></th>
                                        <th ng-show="viewModel.checkbox171"><div>补签次数</div></th>
                                        <th ng-show="viewModel.checkbox18"><div>平日加班</div></th>
                                        <th ng-show="viewModel.checkbox19"><div>双休加班</div></th>
                                        <th ng-show="viewModel.checkbox20"><div>节日加班</div></th>
                                        <th ng-show="viewModel.checkbox21"><div>年假</div></th>
                                        <th ng-show="viewModel.checkbox22"><div>调休</div></th>
                                        <th ng-show="viewModel.checkbox30"><div>事假</div></th>
                                        <th ng-show="viewModel.checkbox29"><div>病假</div></th>
                                        <th ng-show="viewModel.checkbox26"><div>婚假</div></th>
                                        <th ng-show="viewModel.checkbox23"><div>产假</div></th>
                                        <th ng-show="viewModel.checkbox24"><div>产检</div></th>
                                        <th ng-show="viewModel.checkbox27"><div>陪护假</div></th>
                                        <th ng-show="viewModel.checkbox28"><div>哺乳假</div></th>
                                        <th ng-show="viewModel.checkbox25"><div>丧假</div></th>
                                        <th ng-show="viewModel.checkbox31"><div>迟到次数累计</div></th>
                                        <th ng-show="viewModel.checkbox32"><div>早退次数累计</div></th>
                                        <th ng-show="viewModel.checkbox33"><div>旷工次数累计</div></th>
                                        <th ng-show="viewModel.checkbox34"><div>平日加班累计</div></th>
                                        <th ng-show="viewModel.checkbox35"><div>双休加班累计</div></th>
                                        <th ng-show="viewModel.checkbox36"><div>节日加班累计</div></th>
                                        <th ng-show="viewModel.checkbox37"><div>年假开始享受日期</div></th>
                                        <th ng-show="viewModel.checkbox38"><div>可享受年假</div></th>
                                        <th ng-show="viewModel.checkbox39"><div>已休年假</div></th>
                                        <th ng-show="viewModel.checkbox40"><div>剩余年假</div></th>
                                        <th ng-show="viewModel.checkbox41"><div>已休去年年假</div></th>
                                        <th ng-show="viewModel.checkbox42"><div>可享受去年年假</div></th>
                                        <th ng-show="viewModel.checkbox43"><div>已请调休累计</div></th>
                                        <th ng-show="viewModel.checkbox44"><div>剩余调休累计</div></th>
                                        <th ng-show="viewModel.checkbox45"><div>可休产假累计</div></th>
                                        <th ng-show="viewModel.checkbox46"><div>已休产假累计</div></th>
                                        <th ng-show="viewModel.checkbox47"><div>剩余产假累计</div></th>
                                        <th ng-show="viewModel.checkbox48"><div>已休产检假累计</div></th>
                                        <th ng-show="viewModel.checkbox49"><div>已休丧假累计</div></th>
                                        <th ng-show="viewModel.checkbox50"><div>已休婚假累计</div></th>
                                        <th ng-show="viewModel.checkbox51"><div>已休陪护假累计</div></th>
                                        <th ng-show="viewModel.checkbox52"><div>已休哺乳假累计</div></th>
                                        <th ng-show="viewModel.checkbox53"><div>已休病假累计</div></th>
                                        <th ng-show="viewModel.checkbox54"><div>已休事假累计</div></th>
                                        <th ng-show="viewModel.checkbox55"><div style="width:150px;">备注</div></th>
                                    </tr>
                                </thead>
                                <tbody class="report-scroll-body">
                                    <tr ng-repeat="reportTimeDetail in viewModel.dataList">
                                    	<td ng-show="viewModel.checkbox1"><div>{{reportTimeDetail.deptmentNameOne}}</div></td>
                                    	<td ng-show="viewModel.checkbox2"><div>{{reportTimeDetail.deptmentNameTwo}}</div></td>
                                    	<td ng-show="viewModel.checkbox3"><div>{{reportTimeDetail.deptmentNameThree}}</div></td>
                                    	<td ng-show="viewModel.checkbox4"><div>{{reportTimeDetail.deptmentNameFour}}</div></td>
                                    	<td><div>{{reportTimeDetail.deptmentNameFive}}</div></td>
                                        <td ng-show="viewModel.checkbox5"><div>{{reportTimeDetail.employeeNo}}</div></td>
                                        <td ng-show="viewModel.checkbox6"><div>{{reportTimeDetail.chineseName}}</div></td>
                                        <td ng-show="viewModel.checkbox7"><div>{{reportTimeDetail.englishName}}</div></td>
                                        <td>
                                        	<div>
                                        		<span ng-if="reportTimeDetail.sex==1">男</span>
                                        		<span ng-if="reportTimeDetail.sex==2">女</span>
                                        	</div>
                                        </td>
                                        <td><div>{{reportTimeDetail.level}}</div></td>
                                        <td ng-show="viewModel.checkbox8"><div>{{reportTimeDetail.roleName}}</div></td>
                                        <td ng-show="viewModel.checkbox9"><div>{{reportTimeDetail.entryDate | date:'yyyy/MM/dd'}}</div></td>
                                        <td ng-show="viewModel.checkbox10"><div>{{reportTimeDetail.employeeSeparatedDate | date:'yyyy/MM/dd'}}</div></td>
                                        <td ng-show="viewModel.checkbox11"><div class="w90"><span ng-if="reportTimeDetail.realAttendanceDays!=null">{{reportTimeDetail.realAttendanceDays}}</span></div></td>
                                        <!-- <td ng-show="viewModel.checkbox12"><div>{{reportTimeDetail.legalAttendanceDays}}</div></td> -->
                                        <td ng-show="viewModel.checkbox13"><div>{{reportTimeDetail.lateCount}}</div></td>
                                        <td ng-show="viewModel.checkbox15"><div>{{reportTimeDetail.leaveEarlyCount}}</div></td>
                                        <td ng-show="viewModel.checkbox17"><div>{{reportTimeDetail.absentCount}}</div></td>
                                        <td ng-show="viewModel.checkbox171"><div>{{reportTimeDetail.retroactiveCount}}</div></td>
                                        <td ng-show="viewModel.checkbox18"><div><span ng-if="reportTimeDetail.overtimeNomal!=null">{{reportTimeDetail.overtimeNomal}}</span></div></td>
                                        <td ng-show="viewModel.checkbox19"><div><span ng-if="reportTimeDetail.overtimeWeekend!=null">{{reportTimeDetail.overtimeWeekend}}</span></div></td>
                                        <td ng-show="viewModel.checkbox20"><div><span ng-if="reportTimeDetail.overtimeHoliday!=null">{{reportTimeDetail.overtimeHoliday}}</span></div></td>
                                        <td ng-show="viewModel.checkbox21"><div><span ng-if="reportTimeDetail.restYearUsed!=null">{{reportTimeDetail.restYearUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox22"><div><span ng-if="reportTimeDetail.restTuneUsed!=null">{{reportTimeDetail.restTuneUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox30"><div><span ng-if="reportTimeDetail.restThingUsed!=null">{{reportTimeDetail.restThingUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox29"><div><span ng-if="reportTimeDetail.restIllUsed!=null">{{reportTimeDetail.restIllUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox26"><div><span ng-if="reportTimeDetail.restMarryUsed!=null">{{reportTimeDetail.restMarryUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox23"><div><span ng-if="reportTimeDetail.restBornUsed!=null">{{reportTimeDetail.restBornUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox24"><div><span ng-if="reportTimeDetail.restCheckUsed!=null">{{reportTimeDetail.restCheckUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox27"><div><span ng-if="reportTimeDetail.restBornAttendUsed!=null">{{reportTimeDetail.restBornAttendUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox28"><div><span ng-if="reportTimeDetail.restSuckleUsed!=null">{{reportTimeDetail.restSuckleUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox25"><div><span ng-if="reportTimeDetail.restDieUsed!=null">{{reportTimeDetail.restDieUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox31"><div>{{reportTimeDetail.yearLateCount}}</div></td>
                                        <td ng-show="viewModel.checkbox32"><div>{{reportTimeDetail.yearLeaveEarlyCount}}</div></td>
                                        <td ng-show="viewModel.checkbox33"><div>{{reportTimeDetail.yearAbsentCount}}</div></td>
                                        <td ng-show="viewModel.checkbox34"><div>{{reportTimeDetail.yearOvertimeNomal}}</div></td>
                                        <td ng-show="viewModel.checkbox35"><div>{{reportTimeDetail.yearOvertimeWeekend}}</div></td>
                                        <td ng-show="viewModel.checkbox36"><div>{{reportTimeDetail.yearOvertimeHoliday}}</div></td>
                                        <td ng-show="viewModel.checkbox37"><div>{{reportTimeDetail.yearRestYearBegin | date:'yyyy/MM/dd'}}</div></td>
                                        <td ng-show="viewModel.checkbox38"><div><span ng-if="reportTimeDetail.yearRestYearAll!=null">{{reportTimeDetail.yearRestYearAll}}</span></div></td>
                                        <td ng-show="viewModel.checkbox39"><div><span ng-if="reportTimeDetail.yearRestYearUsed!=null">{{reportTimeDetail.yearRestYearUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox40"><div><span ng-if="reportTimeDetail.restYearRemain!=null">{{reportTimeDetail.restYearRemain}}</span></div></td>          
                                        <td ng-show="viewModel.checkbox41"><div><span ng-if="reportTimeDetail.yearRestLastYearUsed!=null">{{reportTimeDetail.yearRestLastYearUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox42"><div><span ng-if="reportTimeDetail.yearRestLastYearAll!=null">{{reportTimeDetail.yearRestLastYearAll}}</span></div></td>
                                        <td ng-show="viewModel.checkbox43"><div><span ng-if="reportTimeDetail.yearRestTuneUsed!=null">{{reportTimeDetail.yearRestTuneUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox44"><div><span ng-if="reportTimeDetail.yearRestTuneRemain!=null">{{reportTimeDetail.yearRestTuneRemain}}</span></div></td>
                                        <td ng-show="viewModel.checkbox45"><div><span ng-if="reportTimeDetail.yearRestBorn!=null">{{reportTimeDetail.yearRestBorn}}</span></div></td>
                                        <td ng-show="viewModel.checkbox46"><div><span ng-if="reportTimeDetail.yearRestBornUsed!=null">{{reportTimeDetail.yearRestBornUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox47"><div><span ng-if="reportTimeDetail.yearRestBornRemain!=null">{{reportTimeDetail.yearRestBornRemain}}</span></div></td>
                                        <td ng-show="viewModel.checkbox48"><div><span ng-if="reportTimeDetail.yearRestCheckUsed!=null">{{reportTimeDetail.yearRestCheckUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox49"><div><span ng-if="reportTimeDetail.yearRestDieUsed!=null">{{reportTimeDetail.yearRestDieUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox50"><div><span ng-if="reportTimeDetail.yearRestMarryUsed!=null">{{reportTimeDetail.yearRestMarryUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox51"><div><span ng-if="reportTimeDetail.yearRestBornAttendUsed!=null">{{reportTimeDetail.yearRestBornAttendUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox52"><div><span ng-if="reportTimeDetail.yearRestSuckleUsed!=null">{{reportTimeDetail.yearRestSuckleUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox53"><div><span ng-if="reportTimeDetail.yearRestIllUsed!=null">{{reportTimeDetail.yearRestIllUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox54"><div><span ng-if="reportTimeDetail.yearRestThingUsed!=null">{{reportTimeDetail.yearRestThingUsed}}</span></div></td>
                                        <td ng-show="viewModel.checkbox55"><div style="width:150px;" ng-bind-html="viewModel.trustAsHtml(reportTimeDetail.description)"></div></td>
                                    </tr>
                                </tbody>
                            </table>
                   </div>
                   <div class="row" style="padding-left: 15px;">
						<div z-Pagination total-Data='viewModel.totalData'
							per-Page='viewModel.perPage'
							current-Page='viewModel.rowCount'
							on-Click="viewModel.bindData()"
							on-Change-Per-Page="viewModel.bindData()"></div>
					</div>
                </div>
			</div>
		</div>
	</div>
</div>